package com.lin.repository;

import com.lin.dataobject.Company;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by MYQ on 2017/10/27.
 */
public interface CompanyRepository extends JpaRepository<Company,Integer>{
    List<Company> findAll(Specification<Company> specification);

    Page<Company> findAll(Specification<Company> specification, Pageable pageable);

    Long count(Specification<Company> specification);

}
